﻿using CSharpDay11.Adapters.Adapters;
using CSharpDay11.Adapters.Interfaces;
using CSharpDay11.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace CSharpDay11.Controllers
{
    public class apiArtistArtController : ApiController
    {
        IArtistArtAdapter _ArtAdapter;
        public apiArtistArtController()
        {
            _ArtAdapter = new ArtistArtAdapter();
        }
        public IHttpActionResult GetArt()
        {
            List<_ArtistViewModel> Artists = _ArtAdapter.GetAllArtist();
            return Ok(Artists);
        }
    }
}
